package com.theorydance.springsourcestudy;

import com.theorydance.springsourcestudy.autowired.conf.TmpPlus5;
import com.theorydance.springsourcestudy.autowired.conf.TmpPlus6;
import com.theorydance.springsourcestudy.autowired.service.PersonService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {

	public static void main(String[] args) {
//		PropertySourcesPropertyResolver
		ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
		PersonService service = context.getBean(PersonService.class);
		System.out.println("service = " + service);
		System.out.println("----------------------");
		System.out.println("TmpPlus5 = " + context.getBean(TmpPlus5.class));
		System.out.println("TmpPlus6 = " + context.getBean(TmpPlus6.class));
	}

}
